package com.syx.friend.Service;

import com.syx.commoncore.Model.Result;
import com.syx.friend.Model.user.DTO.UserDTO;
import com.syx.friend.Model.user.DTO.UserUpdateDTO;
import com.syx.friend.Model.user.VO.UserVO;
import org.springframework.stereotype.Service;

@Service
public interface IUserService {
    Result<Void> sendCode(UserDTO userDTO);

    Result emailLogin(UserDTO userDTO);

    Result<Void> logout(String token);

    Result<UserVO> info(String token);

    Result<UserVO> detail();

    Result<Void> edit(UserUpdateDTO userUpdateDTO);

    Result<Void> updateHeadImage(String headImage);

}
